package chapter_eleven.text11_6demo6;

/**
 * Data time:2021/10/19 17:03
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        //针对抽象构建编程
        AbstractControler container1,container2,container3,unit1,unit2,unit3;

        container1 = new Container("页面");
        container2 = new Container("窗体");
        container3 = new Container("中间面板");

        unit1 = new ButtonControler("按钮1");
        unit2 = new ButtonControler("按钮2");
        unit3 = new TextboxControler("文本框1");


        container2.add(unit1);
        container2.add(unit2);
        container2.add(unit3);

        container3.add(unit1);
        container3.add(unit3);

        container1.add(container2);
        container1.add(container3);

        container1.designControl();
    }
}
